<template>
	<view class="yingdao">
		
		<view class="tu1">
			<image :src="ip+yingdao[0].lb_imgsrc" ></image>
		</view>
		<view class="tu2">
				<image :src="ip+yingdao[1].lb_imgsrc" ></image>
		</view>
		<view class="tex">
			<text>网上药店</text>
		</view>
		</view>
</template>

<script>
	import {reactive,toRefs,onMounted} from "vue"
	import http from "../../utils/http.js"
	export default{
		setup(){
		    let data=reactive({
				yingdao:[
					{lb_imgsrc:"111"},
					{lb_imgsrc:"111"}
				],
				ip:"http://localhost:8088",
			})
			onMounted(()=>{
				http({
					url:'/APPlunbo3',
					method:"get",
					data:{}
				}).then((res)=>{
					// console.log(res.data.data)
					data.yingdao=res.data.data
					// console.log(data.yingdao)
				}).catch((err)=>{
					console.log(err)
				})
				setTimeout(()=>{
					uni.redirectTo({
						url:"../login/login"
					})
				},3000)
			})
			return {...toRefs(data)}
		}
	}
</script>

<style scoped >
	.yingdao{
		position: relative;
		width: 750rpx;
		height: 800rpx;
		/* border: 1px solid red; */
		
	}
	.tu1 >image {
		width: 750rpx;
		height: 700rpx;
	}
	.tu2{
		position: absolute;
		left: 309rpx;
		top: 150rpx;
	}
	.tu2 >image {
		width: 240rpx;
		height: 400rpx;
	}
	.tex{
		width: 750rpx;
		height: 200rpx;
		line-height: 200rpx;
		text-align: center;
		font-size: 2.5rem;
	}
</style>
